#include<opencv2/opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;

 int main()
 {
    Mat image,imgResize;
string path = "/home/lwj/opencv_projeci/1.jpg";
image = imread(path);
cout<<image.cols<<endl;
cout<<image.rows<<endl;
resize(image, image, Size(640, 640));
imshow("image",image);
//makrimshow("imgResize",imgResize);
waitKey(0);
return 0;
 }